package com.example.demo.repository;

import com.example.demo.entity.Lab;
import com.example.demo.entity.LabCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface LabRepository extends JpaRepository<Lab, Long> {
    List<Lab> findByCategory(LabCategory category);
    Optional<Lab> findByName(String name);
    List<Lab> findByCategoryId(Long categoryId);
} 